package com.originskyseed.platform.count.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * Mapper类
 *
 * @author wlj
 */
public interface ContentCountAnchorMapper {

	/**
	 * 统计主播数量
	 *
	 * @return
	 * @throws Exception
	 */
	public int countAnchorAmount(List<String> userIdList) throws Exception;

	/**
	 * 统计体系下主播礼物营收
	 *
	 * @return
	 * @throws Exception
	 */
	public BigDecimal countAnchorGiftEarnings(List<String> userIdList) throws Exception;

	/**
	 * 新用户消费
	 *
	 * @return
	 * @throws Exception
	 */
	public BigDecimal selectNewPlayerRechargeAmount(List<String> userIdList) throws Exception;

	/**
	 * 优质用户数
	 * 
	 * @param userIdList
	 * @return
	 * @throws Exception
	 */
	public int selectHighQualityUserNum(List<String> userIdList) throws Exception;

	/**
	 * 充值用户数
	 * 
	 * @param userIdList
	 * @return
	 * @throws Exception
	 */
	public int selectRechargeUserNum(List<String> userIdList) throws Exception;

	/**
	 * 查询主播的成本
	 *
	 * @return
	 * @throws Exception
	 */
	public BigDecimal selectBasePay(@Param("userIdList") List<String> userIdList) throws Exception;

	/**
	 * 查询毛利
	 * 
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public BigDecimal selectGrossProfit(Map<String, Object> map) throws Exception;

}
